
/** WPI CS509 cisco Stratego UserName
 * 
 */

package edu.wpi.cs509.representation;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;


/**
 * This class contains the username
 * @author sparadis
 *
 */
@MappedSuperclass
public class UserName implements Serializable {
	
	/** 
	 * username
	 */
	@Column(name = "username")
	protected String  username;
	
	/**
	 * serializable version number
	 */
	private static final long serialVersionUID = 1L;
	
	public UserName()
	{
		
	}
	
	/**
	 * Constructor, sets username. 
	 * @param username
	 */
	public UserName(String username) {
		this.username = username;
	}
	
	/**
	 * Set the username.
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * Return the username.
	 * @return String username.
	 */
	public String getUsername() { return username; }
    
	/**
	 * toString: return the username string.
	 */
	public String toString() {
		return  "username: " + username; 
	}

}
